﻿<UserControl x:Class="TechNewLogic.GraphIT.Hv.SectionZoomManager"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
		d:DesignHeight="300" d:DesignWidth="300" x:Name="root" x:ClassModifier="internal">

	<UserControl.Resources>
		<BooleanToVisibilityConverter x:Key="bvc" />
	</UserControl.Resources>

	<Canvas ClipToBounds="True" DataContext="{Binding ElementName=root}">
		<Rectangle Fill="#50add8e6" Stroke="#b0add8e6" StrokeThickness="1.5"
				Visibility="{Binding IsActive, Converter={StaticResource bvc}}"
				Canvas.Left="{Binding SectionPosition.Left}"
				Canvas.Top="{Binding SectionPosition.Top}" Width="{Binding SectionPosition.Width}"
				Height="{Binding SectionPosition.Height}" />
	</Canvas>

</UserControl>
